﻿

namespace DotNetDAL.Entity
{
    /// <summary>
    /// where 参数
    /// </summary>
    public class WhereParameter
    {
        /// <summary>
        /// where SQL
        /// </summary>
        public string SQL { get; set; }
        /// <summary>
        /// where SQL 对应的参数
        /// </summary>
        public object Parameter { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public WhereParameter() {}
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="SQL">where SQL</param>
        public WhereParameter(string SQL)
        {
            this.SQL = SQL;
        }
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="SQL">where SQL</param>
        /// <param name="Parameter">where SQL 对应的参数</param>
        public WhereParameter(string SQL, object Parameter)
        {
            this.SQL = SQL;
            this.Parameter = Parameter;
        }
    }
}
